/*
 * throw.h
 *
 *  Created on: 13 sept. 2011
 *      Author: lindenb
 */

#ifndef THROW_H_
#define THROW_H_
#include <iostream>
#include <sstream>
#include <stdexcept>

#define THROW(a) do {\
		std::ostringstream _os;\
		_os << __FILE__ << ":"<< __LINE__ << ":" << a << std::endl; \
		throw std::runtime_error(_os.str());\
		} while(0)

#endif /* THROW_H_ */
